Click or drag to resize

ScaleOut Software Collections for .NET

This library provides generic dictionaries designed to simplify the creation of an in-process cache.

Overview

The library provides the following two, primary classes:

Both classes implement a SetAndMaintainCount method that can be used to set values while keeping the dictionary at a fixed size. If the operation results in a value being added, another entry will be removed to make room: The RecentDictionary will evict either the most-recently or least-recently used entry (depending on the eviction mode passed into the constructor), and RouletteDictionary will evict a random entry.